@echo off
SET STSADM="c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\bin\STSADM.EXE"

%STSADM% -o retractsolution -name DiContentManagement.Web.wsp -allcontenturls -immediate
%STSADM% -o execadmsvcjobs
%STSADM% -o deletesolution -name DiContentManagement.Web.wsp -override
%STSADM% -o execadmsvcjobs
%STSADM% -o addsolution -filename D:\STSADM\DiContentManagement.Web.wsp
%STSADM% -o execadmsvcjobs
%STSADM% -o deploysolution -name DiContentManagement.Web.wsp -allcontenturls -immediate -allowGacDeployment -force
%STSADM% -o execadmsvcjobs

@pause